
<meta http-equiv="pragma" content="no-cache"/>

<meta http-equiv="expires" content="-1"/>

<script language="JavaScript" type="text/javascript" src="lib/js/jquery-1.8.1.min.js"></script>

<script language="JavaScript" type="text/javascript" src="lib/js/datepicker.js"></script>

<script language="JavaScript" type="text/javascript" src="lib/js/datepicker.ui.js"></script>

<script language="JavaScript" type="text/javascript" src="lib/js/controller.js"></script>

<script language="JavaScript" type="text/javascript" src="lib/js/funciones.js"></script>

<script language="JavaScript" type="text/javascript" src="lib/js/load_file.js"></script>

<script language="JavaScript" type="text/javascript" src="lib/js/jquery.tooltip.js"></script>

<script language="JavaScript" type="text/javascript" src="lib/js/jquery.tooltip.ui.js"></script>

<script language="JavaScript" type="text/javascript" src="lib/uploadify-v2.1.4/uploadify/swfobject.js"></script>
	
<script language="JavaScript" type="text/javascript" src="lib/uploadify-v2.1.4/uploadify/jquery.uploadify.v2.1.4.js"></script>

<script language="JavaScript" type="text/javascript" src="lib/jquery.alerts/jquery.alerts.js"></script>

<!-- <script language="JavaScript" type="text/javascript" src="lib/js/botones_desabilitado.js"></script> -->

<script>
	jQuery(document).ready(function(){
		var url='';
		for(var i=0; i < (document.URL.split('/').length-1); i++){
			url += document.URL.split('/')[i]+'/'
		}
		url = url+'/app/controller/acceso/close_sesion.php';
		
		function cerrar(){
			controller(url,'&close=true','contenedor');
			console.log(url);
			//window.location.reload();
			//return true;
		}
		
		// jQuery(window).on('beforeunload', cerrar);
		// jQuery(window).on('unload', cerrar);
		// jQuery('body').attr('onunload',"controller('"+url+"/app/controller/acceso/close_sesion.php','&close=true','contenedor')");
	});
</script>
